From 0e5ad25f6b4abb57a379bd309beeda8371bf41f9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 13 May 1993 03:00:51 +0000 Subject: [PATCH] (main): Don't require that there be input files if -i switches were given. --- lib-src/etags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index 95e23589393..e3584f8dcea 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -658,12 +658,12 @@ main (argc, argv) } } - if (optind == argc) + if (optind == argc && nincluded_files == 0) { fprintf (stderr, "%s: No input files specified.\n", progname); usage: - fprintf (stderr, "%s: Try '%s --help' for a complete list of options.\n", + fprintf (stderr, "%s: Try `%s --help' for a complete list of options.\n", progname, progname); exit (BAD); } -- 2.30.2